home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
amos
/
ldosv25d.lha
/
ldos_demo
/
examples
/
ldos
/
Lfonts.AMOS
/
Lfonts.amosSourceCode
Wrap
AMOS Source Code
|
1992-05-27
|
1KB
|
44 lines
'
' Lfreq font and Ldisk font-demo
' Bring up font-requester, mask out "/" and full pathname AFTER
' loading the font into memory (making it available to Get Rom Fonts)
' Then scan fonts i ROM to see if it loaded correctly and then set the
' font and print a sample.
'
Screen Open 1,640,256,8,Hires : Paper 0 : Clw
Centre "Select a font......" : Print
Wait 50
Extension_10_01EE "fonts:"
Do
Amos To Back
' Use $8 flag to bring up font-req.
A$= Extension_10_01A0("Select a nice font!",$4+$8+$10+$40+$100+$1000)
Amos To Front
If A$="" Then Print "Aborted.." : End
Print A$- Extension_10_0216 -"/";" is requsted..loading..."
Q= Extension_10_0326(A$, Extension_10_04DC )
Proc _FONTZ[A$, Extension_10_04DC ]
Loop
Procedure _FONTZ[REQ$,SI]
REQ$=Upper$(REQ$- Extension_10_0216 )
REQ$=REQ$-"/" : Rem If user changed path...
Get Rom Fonts
A=1
L=Len(REQ$)
While Font$(A)<>""
If Upper$(Mid$(Font$(A),1,L))=REQ$
If Val(Mid$(Font$(A),29,4))=SI
Set Font A
Exit 1
End If
End If
Inc A
Wend
If Font$(A)<>""
Cls 0,0,100 To 640,256
Text 10,150,"Press a key or mouse"
Repeat
Multi Wait
Until(Mouse Click) or(Inkey$<>"")
End If
End Proc